package com.tuyou.demo2.swift;

import com.facebook.swift.codec.ThriftField;
import com.facebook.swift.codec.ThriftStruct;

//@ThriftException(type = Exception.class, id = 1)
@ThriftStruct
public class MyException extends Exception {

    @ThriftField(1)
    public String message;

    public MyException() {
        super();
    }

    public MyException(String message) {
        this.message = message;
    }

    public String getMessage(){
        return message;
    }
}